package com.ysmygx.service.impl;

import cn.hutool.json.JSONUtil;
import com.google.protobuf.ServiceException;
import com.ysmygx.domain.CompanyBalance;
import com.ysmygx.mapper.CompanyBalanceMapper;
import com.ysmygx.service.ICompanyBalanceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 *
 * @author cloudwood
*
 */
@Slf4j
@Service
public class CompanyBalanceServiceImpl implements ICompanyBalanceService
{

    @Resource
    private CompanyBalanceMapper companyBalanceMapper;


    @Override
    public CompanyBalance selectCompanyBalanceById(Long id) {
        return companyBalanceMapper.selectCompanyBalanceById(id);
    }

    @Override
    public CompanyBalance selectCompanyBalanceByAccountNo(String accountNo) {
        return companyBalanceMapper.selectCompanyBalanceByAccountNo(accountNo);
    }

    @Override
    public int insertCompanyBalance(CompanyBalance companyBalance) {
        return companyBalanceMapper.insertCompanyBalance(companyBalance);
    }

    @Override
    public int updateCompanyBalance(CompanyBalance companyBalance) {
        return companyBalanceMapper.updateCompanyBalance(companyBalance);
    }
}
